package com.company.cloud.admin.constant;

import com.company.cloud.common.constant.ReturnCodeEnum;

public enum PlatformAdminErrorEnum implements ReturnCodeEnum {

	
	
    DEPT_NULL("1401","部门不存在"),
    DEPT_HAS_CHILDREN("1402","存在子部门，该部门不能删除"),
    USER_NULL("1403", "用户不存在"),
    USER_IS_MANAGER("1005", "系统管理员不能禁用"),
    ROLE_NULL("1006", "角色不存在"),
    ROLE_IS_MANAGER("1007", "系统管理员角色不能删除"),
    ROLE_CODE_NULL("1008","角色编号不存在"),
    PERMISSION_NULL("1009","权限不存在"),
    PERMISSION_HAS_CHILDREN("1010","存在子权限，不能操作"),
	
	;
	private String code;
	private String msg;
	private PlatformAdminErrorEnum() {
	}
	PlatformAdminErrorEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	@Override
	public String getCode() {
		return code;
	}
	@Override
	public String getMsg() {
		return msg;
	}
}
